package com.dd.cloud.user.entity.plat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dd.cloud.common.constants.RegularConstants;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Lx
 * @version 1.0
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "账号信任设备表")
public class TrustDevice implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 机型
     */
    @Column(length = RegularConstants.Verify.MAX_NAME, comment = "机型 如huawei vivo")
    private String mobModel;

    /**
     * cid
     */
    @Column(length = RegularConstants.Verify.MAX_DESC, comment = "unipush的id, 用于推送app消息")
    private String cid;

    /**
     * 设备型号
     */
    @Column(length = 118, comment = "设备型号")
    private String model;

    /**
     * 用户id
     */
    @Column(comment = "用户id")
    private Integer userId;

    /**
     * 用户类型
     */
    @Column(comment = "用户类型")
    private Integer userType;

    /**
     * 状态 1正常 -1删除
     */
    @Column(comment = "状态 1正常 -1删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;

    /**
     * 修改时间/最后一次登录时间
     */
    @Column(comment = "修改时间/最后一次登录时间")
    private LocalDateTime updateDate;
}
